{include file="public/header"}
<body>
<style>
    .layui-form-label{
        width: 200px;
    }
    .layui-input{
        width:70%;
    }
</style>

<form class="layui-form" >
    {notempty name="$list['blChnlId']"}
    <div class="layui-form-item">
        <label class="layui-form-label"> 上级代理商ID</label>
        <div class="layui-input-block">
            <input type="text" value="{$list['blChnlId']}" readonly class="layui-input">
        </div>
    </div>
    {/notempty}
    <div class="layui-form-item">
        <label class="layui-form-label"> 商户号</label>
        <div class="layui-input-block">
            <input type="text" value="{$list['bindMerId']}"  class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"> 代理商等级</label>
        <div class="layui-input-block">
            <input type="text" value="{$list['chnlLevel']}"  class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"> 代理商名称</label>
        <div class="layui-input-block">
            <input type="text" name="chnlName"  value="{$list['chnlName']}" readonly class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"> 手机号</label>
        <div class="layui-input-block">
            <input type="text"  value="{$list['chnlMp']}"  readonly class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"> 代理商联系人</label>
        <div class="layui-input-block">
            <input type="text" value="{$list['chnlContactRen']}" readonly  class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"> 结算银行卡编号</label>
        <div class="layui-input-block">
            <input type="text" name="openBankId"  value="{$list['openBankId']}" readonly class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"> 结算银行卡卡号</label>
        <div class="layui-input-block">
            <input type="text" name="openAcctId" value="{$list['openAcctId']}" readonly   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"> 结算银行卡户名</label>
        <div class="layui-input-block">
            <input type="text" name="openAcctName" value="{$list['openAcctName']}" readonly class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"> 合同编号</label>
        <div class="layui-input-block">
            <input type="text" name="agreeNo" value="{$list['agreeNo']}" class="layui-input" readonly>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"> 合同到期日</label>
        <div class="layui-input-block">
            <input type="text" name="legalDate" value="{$list['legalDate']}"  class="layui-input" readonly >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"> 所属运营商销售</label>
        <div class="layui-input-block">
            <input type="text" name="blOperId" required value="{$list['blOperId']}"  class="layui-input" readonly>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label"> 代理商地址</label>
        <div class="layui-input-block">
            <input type="text" name="address" value="{$list['chnlAddr']}"  class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"> 注册时间</label>
        <div class="layui-input-block">
            <input type="text" name="address" value="{$list['regDate']}{$list['regTime']} "  class="layui-input">
        </div>
    </div>


</form>


{include file="public/footer"}

<script>
    layui.use('form', function(){
        var form = layui.form();
        form.on('submit(admin-form)', function(data){
            var params  = {
                url: '{:url("add")}',
                data: data.field,
                type: 'post',
                sCallback:function(res){
                    layer.msg(res.msg,{time:1800},function(){
                        location.reload();
                    });
                }
            };
            common.request(params);
            return false;
        });

    });
</script>

</body>
</html>